package com.fdd.op.sdk.domain;

import com.fdd.op.sdk.BaseObject;
import com.fdd.op.sdk.internal.mapping.ApiField;

/**
 * OAuth2AccessToken
 *
 * @author Fadada
 * @date 2021/5/11
 */
public class OAuth2AccessToken extends BaseObject {
    /**
     * 令牌Token
     */
    @ApiField("accessToken")
    private String accessToken;
    /**
     * 权限范围
     */
    @ApiField("scope")
    private String scope;
    /**
     * 令牌类型
     */
    @ApiField("tokenType")
    private String tokenType;
    /**
     * 有效截止时间（秒）
     */
    @ApiField("expiresIn")
    private Integer expiresIn;

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getTokenType() {
        return tokenType;
    }

    public void setTokenType(String tokenType) {
        this.tokenType = tokenType;
    }

    public Integer getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Integer expiresIn) {
        this.expiresIn = expiresIn;
    }

    @Override
    public String toString() {
        return "OAuth2AccessToken{" +
                "accessToken='" + accessToken + '\'' +
                ", scope='" + scope + '\'' +
                ", tokenType='" + tokenType + '\'' +
                ", expiresIn=" + expiresIn +
                '}';
    }
}
